﻿#region Copyright 2008 - Evolution Systems.
//
// Author: José Rogério Ferreira dos Santos(joserogerio.santos@gmail.com)
// Date: 18/01/2009
// Time: 11:53
// All rights are reserved. Reproduction or transmission in whole or in part, in
// any form or by any means, eletronic, mechanical or otherwise, is prohibited
// without the prior written permission of the author.
//
// Filename: ${FILE_NAME}.cs
#endregion
using System;
using System.Drawing;
using csharp.rad.general;
using System.Windows.Forms;
using ComponentFactory.Krypton.Toolkit;

namespace csharp.rad.sisponto
{
	/// <summary>
	/// Description of frmGamb.
	/// </summary>
	public partial class frmGamb : KryptonForm
	{
		private Database bd;
		
		public frmGamb(Database bd)
		{
			//
			// The InitializeComponent() call is required for Windows Forms designer support.
			//
			InitializeComponent();
			this.bd = bd;
		}
		
		void KryptonButton1Click(object sender, EventArgs e)
		{
				kernel.export ex = new kernel.export(bd, bd);
				if(! ex.exportHorariosWithAutoCompletation())
					KryptonMessageBox.Show(ex.getMsgErro());
				else
					KryptonMessageBox.Show("Registers exported sucessful!");			
		}
	}
}
